var express = require('express');
var router = express.Router();
// var React = require('react');
// var ReactDOM = require('react-dom');
//
// ReactDOM.render(
//     <h1>Hello, world!</h1>,
//     document.getElementById('test')
// );

var index = function(req, res, next) {
    res.render('index', { title: '主页' });
};


/* GET home page. */
router.get('/', index);
// router.get('/index', index);

//
// router.get('/h', function (req, res) {
//     res.send('hello,world!');
// });

module.exports = router;
